var express = require('express');
var router = express.Router();

const {
  isAdminSalesLogin,
  userLogin,
  getAllUsers,
  deleteOneUser,
  myUsersList,
  addUser,
  updateOneUser,
  getOneUser,
} = require('../controllers/users');

/* GET users listing. */
router.post('/isAdminSalesLogin', isAdminSalesLogin);
router.post('/userLogin', userLogin);
router.post('/getAllUsers', getAllUsers);
router.post('/deleteOneUser', deleteOneUser);
router.post('/myUsersList', myUsersList);
router.post('/addUser', addUser);
router.post('/updateOneUser', updateOneUser);
router.post('/getOneUser', getOneUser);
module.exports = router;
